Goto Statement ^^^^^ **Definition:** * A goto statement is used. The use of goto statements is inadvisable and should be avoided. **Code Example:** .. code-block:: csharp function f ( integer i ) runs on ExampleComponent { var integer MyVar := i ; label L1 ; MyVar := 2 ∗ MyVar ; if (MyVar < 2000) { goto L1 ; } MyVar2 := f2(MyVar); if (MyVar2 > MyVar) { goto L2 ; } p.send(MyVar); p.receive -> value MyVar2; label L2 ; } **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `An approach to quality engineering of TTCN-3 test specifications `_ * `Pattern-based Smell Detection in TTCN-3 Test Suites `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` :octicon:`sync;1em` * `Utilising Code Smells to Detect Quality Problems in TTCN-3 Test Suites `_